<template>
    <div>
        hello python
        {{form.name}}
        {{name}}
        <button @click="getvalues">按钮</button>
        <van-field label="名称" placeholder="请输入名称"/>
        
    </div>
</template>

<script>
import { reactive,ref } from '@vue/reactivity'
import axios from '../http/axios'

export default {
       setup(){
           let form=reactive({'name':'a','pass':'34'})
           let name = ref('234')
           let getvalues=()=>{
               form.name='abc'
               name.value='ttt'
           }
           axios('getdata','post',{"a":'a'})
           .then(res=>{
               console.log(res.data)
           })
           return{
               form,
               name,
               getvalues
           }
       },   
}
</script>

<style scoped>

</style>